package StudyCode.summary.Basic.stringtokenizer;

import java.util.StringTokenizer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringTokenizerCounter {
	public static void main(String[] args) {
		StringTokenizer st = new StringTokenizer("Hello-World-By-Java", "-");
		while (st.hasMoreTokens()) {
			System.out.println("剩余分割结果个数 : " + st.countTokens());
			System.out.println("分割内容:" + st.nextToken());
		}

	}
}
